#!/usr/local/bin/python3
#-*- coding:utf8 -*-
# Author Aaron 
# 2017-04-09 21:10:46
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BOARD)
pin = 7
GPIO.setup(pin,GPIO.OUT)
while True:
    GPIO.output(pin,GPIO.HIGH)
    print("输出:HIGH")
    time.sleep(1.0)
    GPIO.output(pin,GPIO.LOW)
    time.sleep(1.0)
    print("输出:LOW")
GPIO.cleanup()


